<template>
	<view class="page">
		<button class="btn" @click="goReportList(0,'reportor')" v-if="is_reportor==1">客户报备</button>
		<button class="btn" @click="goReportList(1,'receiver')"  v-if="is_receiver==1">客户接待</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				is_receiver:0,
				is_reportor:0,
				id:0
			}
		},
		onLoad(e) {
			this.is_receiver = e.is_receiver;
			this.is_reportor = e.is_reportor;
			this.id = e.id;
		},
		methods: {
			goReportList(num,msg){
				uni.navigateTo({
				    url: '../report-list/report-list?is='+num+'&id='+this.id+'&identity='+msg
				});
			}
		}
	}
</script>

<style scoped>
.page{
	width: 100%;
	height: 100vh;
	box-sizing: border-box;
	background-color: #f6f6f6;
	padding-top: 370upx;
}
.btn{
	width: 415upx;
	height: 100upx;
	background-color: #FFFFFF;
	color: #000000;
	margin: 0 auto 90upx auto;
	border-radius: 100upx;
	font-size: 16px;
	line-height: 100upx;
}
button::after{
	border: none;
}
</style>
